home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / drivers / m92.h < prev    next >
Text File  |  1999-12-07  |  5KB  |  116 lines

  1. /*******************************************************************************
  2.  
  3.     Irem M92 input port macros
  4.  
  5.     Can probably be used for other Irem games..
  6.  
  7. *******************************************************************************/
  8.  
  9. #define PORT_PLAYER1_2BUTTON_JOYSTICK \
  10.     PORT_START    \
  11.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER1 ) \
  12.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER1 ) \
  13.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER1 ) \
  14.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER1 ) \
  15.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) \
  16.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) \
  17.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER1 ) \
  18.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER1 )
  19.  
  20. #define PORT_PLAYER2_2BUTTON_JOYSTICK \
  21.     PORT_START    \
  22.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER2 ) \
  23.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER2 ) \
  24.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER2 ) \
  25.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER2 ) \
  26.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNUSED ) \
  27.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNUSED ) \
  28.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER2 ) \
  29.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER2 )
  30.  
  31. #define PORT_PLAYER3_2BUTTON_JOYSTICK \
  32.     PORT_START    \
  33.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER3 ) \
  34.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER3 ) \
  35.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER3 ) \
  36.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER3 ) \
  37.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START3 ) /* If common slots, Coin3 if separate */ \
  38.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
  39.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER3 ) \
  40.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER3 )
  41.  
  42. #define PORT_PLAYER4_2BUTTON_JOYSTICK \
  43.     PORT_START    \
  44.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER4 ) \
  45.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER4 ) \
  46.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER4 ) \
  47.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER4 ) \
  48.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START4 ) /* If common slots, Coin4 is separate */ \
  49.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN ) \
  50.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER4 ) \
  51.     PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER4 )
  52.  
  53. #define PORT_COINS_VBLANK \
  54.     PORT_START    \
  55.     PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_START1 ) \
  56.     PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_START2 ) \
  57.     PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_COIN1 ) \
  58.     PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN2 ) \
  59.     PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN ) /* Coin3 if 2 Players */ \
  60.     PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )  \
  61.     PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )  \
  62.     PORT_BIT( 0x80, IP_ACTIVE_HIGH, IPT_UNUSED ) /* Actually vblank, handled above */ \
  63.  
  64. #define PORT_SYSTEM_DIPSWITCH \
  65.     PORT_START \
  66.     PORT_DIPNAME( 0x01, 0x01, DEF_STR( Flip_Screen ) ) \
  67.     PORT_DIPSETTING(    0x01, DEF_STR( Off ) ) \
  68.     PORT_DIPSETTING(    0x00, DEF_STR( On ) ) \
  69.     PORT_DIPNAME( 0x02, 0x02, DEF_STR( Cabinet ) ) \
  70.     PORT_DIPSETTING(    0x02, "2 Players" ) \
  71.     PORT_DIPSETTING(    0x00, "4 Players" ) \
  72.     PORT_DIPNAME( 0x04, 0x04, "Coin Slots" ) \
  73.     PORT_DIPSETTING(    0x04, "Common" ) \
  74.     PORT_DIPSETTING(    0x00, "Seperate" ) \
  75.     PORT_DIPNAME( 0x08, 0x08, "Coin Mode" ) /* Default 1 */ \
  76.     PORT_DIPSETTING(    0x08, "1" ) \
  77.     PORT_DIPSETTING(    0x00, "2" ) \
  78.     /* Coin Mode 1 */ \
  79.     PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( Coinage ) ) \
  80.     PORT_DIPSETTING(    0x50, DEF_STR( 6C_1C ) ) \
  81.     PORT_DIPSETTING(    0x40, DEF_STR( 5C_1C ) ) \
  82.     PORT_DIPSETTING(    0x30, DEF_STR( 4C_1C ) ) \
  83.     PORT_DIPSETTING(    0x20, DEF_STR( 3C_1C ) ) \
  84.     PORT_DIPSETTING(    0x10, DEF_STR( 2C_1C ) ) \
  85.     PORT_DIPSETTING(    0xe0, "2 to Start/1 to Continue" ) \
  86.     PORT_DIPSETTING(    0xc0, DEF_STR( 3C_2C ) ) \
  87.     PORT_DIPSETTING(    0xd0, DEF_STR( 4C_3C ) ) \
  88.     PORT_DIPSETTING(    0xf0, DEF_STR( 1C_1C ) ) \
  89.     PORT_DIPSETTING(    0xb0, DEF_STR( 2C_3C ) ) \
  90.     PORT_DIPSETTING(    0x60, DEF_STR( 1C_2C ) ) \
  91.     PORT_DIPSETTING(    0x70, DEF_STR( 1C_3C ) ) \
  92.     PORT_DIPSETTING(    0x80, DEF_STR( 1C_4C ) ) \
  93.     PORT_DIPSETTING(    0x90, DEF_STR( 1C_5C ) ) \
  94.     PORT_DIPSETTING(    0xa0, DEF_STR( 1C_6C ) ) \
  95.     PORT_DIPSETTING(    0x00, DEF_STR( Free_Play ) )
  96.  
  97. #if 0
  98.     /* Coin Mode 2 */ \
  99.     PORT_DIPNAME( 0x30, 0x30, DEF_STR( Coin_A ) ) \
  100.     PORT_DIPSETTING(    0x00, DEF_STR( 5C_1C ) ) \
  101.     PORT_DIPSETTING(    0x10, DEF_STR( 3C_1C ) ) \
  102.     PORT_DIPSETTING(    0x20, DEF_STR( 2C_1C ) ) \
  103.     PORT_DIPSETTING(    0x30, DEF_STR( 1C_1C ) ) \
  104.     PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( Coin_B ) ) \
  105.     PORT_DIPSETTING(    0xc0, DEF_STR( 1C_2C ) ) \
  106.     PORT_DIPSETTING(    0x80, DEF_STR( 1C_3C ) ) \
  107.     PORT_DIPSETTING(    0x40, DEF_STR( 1C_5C ) ) \
  108.     PORT_DIPSETTING(    0x00, DEF_STR( 1C_6C ) )
  109. #endif
  110.  
  111.  
  112. #define PORT_UNUSED \
  113.     PORT_START    \
  114.     PORT_BIT( 0xff, IP_ACTIVE_LOW, IPT_UNUSED )
  115.  
  116.